<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:f="http://xmlns.jcp.org/jsf/core"
      xmlns:h="http://xmlns.jcp.org/jsf/html">
    <h:head>
        <title>Administration</title>
        <h:outputStylesheet library="css" name="panel-grid-style.css"/>
    </h:head>
    <h:body>

        <h1>Administration</h1>

        <h:form id="logout">
            <h:commandButton value="Logout" action="#{userAccountSession.logout()}"/>
            <h:commandLink value="go back to Regular Main" action="backToRegularMain"/>

            <hr/>

            <h:dataTable value="#{administrationPage.users}" var="user" columnClasses=outputText>
                <h:column>
                    <f:facet name="header">
                        <h:outputText value="ID"/>
                    </f:facet>
                    <h:outputText value="#{user.id}"/>
                </h:column>
                <h:column>
                    <f:facet name="header">
                        <h:outputText value="Type"/>
                    </f:facet>
                    <h:outputText value="#{user.type}"/>
                </h:column>
                <h:column>
                    <f:facet name="header">
                        <h:outputText value="Username"/>
                    </f:facet>
                    <h:outputText value="#{user.username}"/>
                </h:column>
                <h:column>
                    <f:facet name="header">
                        <h:outputText value="Password"/>
                    </f:facet>
                    <h:outputText value="#{user.password}"/>
                </h:column>
            </h:dataTable>

        </h:form>




    </h:body>
</html>

